﻿package cn.antscript.airCMS.display.component.btnbase 
{
	import cn.antscript.airCMS.display.component.btnbase.AbstractIco;
	import cn.antscript.airCMS.display.component.Tips;
	import flash.display.BitmapData;
	import flash.events.MouseEvent;
	import flash.filters.BevelFilter;
	import flash.filters.GlowFilter;
	
	/**
	 * ...
	 * @author antscript
	 */
	public class AbstractTypeIco extends AbstractIco
	{
		
		public function AbstractTypeIco(bitmapData:BitmapData,label:String="") 
		{
			super(bitmapData, label);
			
			this.graphics.beginFill(0, 0);
			this.graphics.drawRoundRect(0, 0, 50, 50, 3);
			this.graphics.endFill();
		}
		override protected function onOver(e:MouseEvent):void 
		{
			Tips.getInstance().show(this, _label, 8, 55);
			
			this.filters = [new GlowFilter(0xffffff,1,3,3)];
			
		}		
		
		override protected function onOut(e:MouseEvent):void 
		{
			Tips.getInstance().hide();
			this.filters = [];
		}
	}

}